<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Order extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
         Schema::create('orders', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('order_num',100)->comment('订单编号');
            $table->integer('user_id')->comment('用户id');
            // $table->integer('goods_id')->comment('商品id');
            $table->integer('address_id')->comment('地址ID');
            // $table->decimal('order_price',6,2)->comment('价格');
            // $table->integer('order_number')->comment('数量');
            $table->integer('status')->comment('订单状态');

           
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('order');
        //
    }
}
